// 用户相关的请求模块

import request from '@/utils/request'

// 箭头函数的写法
export const req_login = ({ username, password }) => {
    return request.post('/auth/login', {
        username,
        password
    })
}

// 获取当前用户信息
export const req_currentUser = () => {
    return request.get('/auth/currentUser')
}

